package com.zsc.wxapp.mapper;

import com.zsc.wxapp.entity.CustomerOfManager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CustomerOfManagerMapper {

    /**
     * 根据客户经理的姓名获取到所有相关的零售客户消息
     * @param username 客户经理的姓名
     * @return list
     */
    @Select("select * from customer_of_manager where manager_name = #{username}")
    List<CustomerOfManager> getCustomerByManager(String username);

    List<CustomerOfManager> getAllManager();
}
